package service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import pojo.User;

/**
 * @Author: duk
 * @Date: 2022/1/9 19:54
 * @Description: Fegin客户端接口
 */
@FeignClient("usersserver")
public interface UserClient {
    /**
     * 人员查询接口，通过GET查询
     * @param id 人员ID
     * @return 人员实例
     */
    @GetMapping("/users/{id}")
    User findById(@PathVariable("id") long id);
}
